package com.wangnian.wangcai.dao;

import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @author wangnian
 */
@Repository
public interface DayInfoDao extends JpaRepository<DayInfo, Serializable> {
    List<DayInfo> findByCode(String code, Sort sort);

    DayInfo findByCodeAndTime(String code, Date time);

}